package com.upsuns.service;

import java.io.RandomAccessFile;
import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *@Description:<p>远程服务接口定义</p>
 *@author 王旭
 *@time 2016年3月14日 下午4:38:29
 */
public interface FileService extends Remote,Serializable {
	
	
	public byte[] readFile(int times) throws RemoteException;
	
	public void finished() throws RemoteException;
	
	public boolean isFinished() throws RemoteException;

	public RandomAccessFile getRaf() throws RemoteException;

	public long getFileSize() throws RemoteException;

	public long getPerSize() throws RemoteException;

	public long getRestSize() throws RemoteException;

	public int getTimes() throws RemoteException;
	
	public String getFileName() throws RemoteException;
	

}
